<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RepeaterPagingPage.aspx.cs" Inherits="RepeaterPagingPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="width: 100%">
            
            <tr>
                <td colspan="1" style="height: 41px" valign="top">
         
        <asp:Repeater ID="Repeater1" runat="server" DataMember="DefaultView">
            <HeaderTemplate>
                <table border="1">
                
                    <tr>
                        <td>
                            <b>Email</b></td>
                        <td>
                            <b>CompanyName</b></td>
                        <td>
                            <b>Address</b></td>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <%# DataBinder.Eval(Container.DataItem, "Email") %>
                    </td>
                    <td>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("CompanyName") %>'></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="Label3" runat="server" Text='<%# Eval("Address") %>'></asp:Label></td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
                </td>
            </tr>
            <tr>
                <td colspan="1" valign="top">
                    <hr width="100%" />
                    &nbsp;</td>
            </tr>
            <tr>
                <td  valign="top">
                    <table align="right" style="width: 100%">
                        <tr>
                            <td align="left" style="width: 32%; height: 21px">
                                Page:
                                <asp:Label ID="lblPage" runat="server" Font-Name="verdana" Font-Names="verdana" Font-Size="10pt"
                                    Width="21px">1</asp:Label>of &nbsp;
                                <asp:Label ID="lblPages" runat="server" Font-Name="verdana" Font-Names="verdana"
                                    Font-Size="10pt" Width="30px">1</asp:Label>
                                &nbsp;&nbsp;&nbsp;</td><td align="left" style="width: 110%; height: 21px">
                    <asp:LinkButton ID="linkFirst" runat="server" OnClick="linkFirst_Click">First</asp:LinkButton>
                    &nbsp;
                    <asp:LinkButton ID="linkPrevious" runat="server" OnClick="linkPrevious_Click">Previous</asp:LinkButton>
                    &nbsp;
                    <asp:LinkButton ID="linkNext" runat="server" OnClick="linkNext_Click">Next</asp:LinkButton>&nbsp;
                    <asp:LinkButton ID="linkLast" runat="server" OnClick="linkLast_Click">Last</asp:LinkButton></td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        &nbsp; &nbsp;&nbsp;
    
    </div>
    </form>
</body>
</html>
